#ifndef ADMINSELECTEMPLOYEEVIEW_H
#define ADMINSELECTEMPLOYEEVIEW_H

#include <QWidget>
#include <QTableWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QMessageBox>
#include "adminmanager.h"

class AdminSelectEmployeeView : public QWidget
{
    Q_OBJECT
public:
    explicit AdminSelectEmployeeView(QWidget *parent = nullptr);
    ~AdminSelectEmployeeView();

signals:

private slots:
    void onSearchButtonClicked();
    void onResetButtonClicked();

private:
    void setupUI();
    void setupConnections();
    void initTable();
    void searchEmployees(bool);

    // UI组件
    QLineEdit *idEdit;
    QLineEdit *nameEdit;
    QLineEdit *departmentEdit;
    QPushButton *searchButton;
    QPushButton *resetButton;
    QTableWidget *resultTable;

    // 管理类
    AdminManager *adminManager;
};

#endif // ADMINSELECTEMPLOYEEVIEW_H
